#include <winsock2.h>
#include <stdio.h>


class synSocket
{
	private:
		int i;
		SOCKET sock ;		
		int recieveTimeout;
	
	public:
		synSocket();
		
		~synSocket();
		
		bool create();
		
		bool asyConnect(const char *host,unsigned short port,int timeout);
		
		bool disconnect();
		
		int write(const char * buf,int len);
		
		int read(char *buf,int len);
		
		void setRevieveTimeout(int timeoutMse);
			
						
};
